﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FindLinksTestPage.aspx.cs" Inherits="FindLinksTestPage" %>

<!DOCTYPE html>
<script type="text/javascript">
    function toggleTextbox(rdo) {
        if (rdo.id === "urlCheckbox") {
            document.getElementById("urlTextBox").disabled = !rdo.checked;
            document.getElementById("textCheckbox").disabled = rdo.checked;
        } else if (rdo.id === "textCheckbox") {
            document.getElementById("textTextBox").disabled = !rdo.checked;
            document.getElementById("urlCheckbox").disabled = rdo.checked;
        }
    }
</script>
<html>
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1 {
            height: 23px;
        }

        .auto-style2 {
            height: 23px;
            width: 70px;
        }

        .auto-style3 {
            width: 70px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <h1>Find Links Test Page</h1>
        <table style="width: 100%;" border="1">
            <tr>
                <td><b>Service Description</b></td>
                <td>The Find Image Links Service takes a <i>URI</i> identifying a web page and pulls out all URIs within that page that are in an <i>a</i> tag. It then returns these <i>URIs</i> in an array of Strings </td>
            </tr>
            <tr>
                <td><b>Service URL</b></td>
                <td><a href="http://10.0.2.143/ZachmanAssignment3Services/Assignment3Service.svc">http://10.0.2.143/ZachmanAssignment3Services/Assignment3Service.svc</a></td>
            </tr>
            <tr>
                <td><b>WSDL URL</b></td>
                <td><a href="http://10.0.2.143/ZachmanAssignment3Services/Assignment3Service.svc?singleWsdl">http://10.0.2.143/ZachmanAssignment3Services/Assignment3Service.svc?singleWsdl</a></td>
            </tr>
            <tr>
                <td><b>Methods</b></td>
                <td>Method List. Format: <i>return type :: MethodName(parameter(s))</i>
                    <ul>
                    <li>String[] :: UrlsInPage(String url)</li>
                    </ul>
                </td>
            </tr>
        </table>
        <hr />
        <p />
        <h2>Service Test</h2>
                <p>
            <asp:TextBox ID="urlTextBox" runat="server" Height="16px" Width="339px"></asp:TextBox>
            <asp:Button ID="submitButton" runat="server" OnClick="Submit_Click" Text="Submit" />
        </p>
        <h3>Links In Page:</h3>
        <p id="output" runat="server">
            <asp:Label ID="filteredLabel" runat="server"></asp:Label>
        </p>  
    </form>
</body>
</html>
